package cn.lysj.framework.customer.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.persistence.Column;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @author ZhangWenJian
 * @data 2019/1/16--15:53
 * @description
 */
@Data
public class CustomerVipCouponVo {
    //coupon
    private String name;              //优惠券名称
    @Column(columnDefinition = "decimal(10,2)")
    private BigDecimal fullReductionMoney;  //满减金额
    @Column(columnDefinition = "decimal(10,2)")
    private BigDecimal discountMoney; //优惠金额

    //customerVipCoupon
    private String customerVipCouponId; //用户优惠券Id
    private Integer useType;     //使用状态 1.未使用 2.已经使用
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    private Date beginDate;      //有效期开始时间
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    private Date endDate;        //有效期结束时间

    public CustomerVipCouponVo() {
    }

    public CustomerVipCouponVo(String name, BigDecimal fullReductionMoney, BigDecimal discountMoney, String customerVipCouponId, Integer useType, Date beginDate, Date endDate) {
        this.name = name;
        this.fullReductionMoney = fullReductionMoney;
        this.discountMoney = discountMoney;
        this.customerVipCouponId = customerVipCouponId;
        this.useType = useType;
        this.beginDate = beginDate;
        this.endDate = endDate;
    }
}
